package com.jic.market.service.skill;

import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.market.entity.skill.SkillActivityTimeConfig;

import java.util.List;

/**
 * 秒杀基础信息时间间隔配置表
 *
 * @author : seven
 * @version : v1.0.0
 * @email : 774329481@qq.com
 * @since : 2020-03-12 04:47:15
 */
public interface SkillActivityTimeConfigService {

    long insert(SkillActivityTimeConfig skillActivityTimeConfig);

    long delete(String promotionId);

    long update(SkillActivityTimeConfig skillActivityTimeConfig);

    SkillActivityTimeConfig queryByPrimaryKey(Long id);

    List<SkillActivityTimeConfig> query(SkillActivityTimeConfig skillActivityTimeConfig);

    PageResult<SkillActivityTimeConfig> queryPage(SkillActivityTimeConfig skillActivityTimeConfig, Page pageQuery);

    List<SkillActivityTimeConfig> queryByPromotionId(String promotionId);

    List<String> queryTimeIdByPromotionId(String promotionId);

    long updateTimeByPromotionId(String startTimeOfDate,
                                 String endTimeOfDate,
                                 String promotionId,
                                 String timeId);

    String queryTimeIdByPromotionIdAndDate(String promotionId,
                                           String startTimeOfDate,
                                           String endTimeIfDate);

    SkillActivityTimeConfig queryTimeConfigByPromotionIdAndTimeId(String promotionId,
                                                                  String timeId);

    long deleteByPromotionIdAndTimeId(String promotionId,String timeId);

    int insertBatch(List<SkillActivityTimeConfig> skillActivityTimeConfigs);

}